package com.hoyue.classroom.bean;

import java.util.Date;

/**
 * @author 空白
 * @version 1.0
 * Create by 2019/08/17 00:34
 */
public class Course {
    // 序号
    private Integer id;

    // 课程名字
    private String name;

    // 课程简介/说明
    private String describe;

    // 课程开始时间
    private Date startTime;

    // 课程结束时间
    private Date endTime;

    // 教师id
    private Integer teacherId;

    // 教师名称
    private String teacherName;

    // 课程创建时间
    private Date createTime;

    // 课程修改时间
    private Date updateTime;

    // 课程封面
    private String img;

    private Integer status;

    private Integer sort;

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSort() {
        return sort;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getStatus() {
        return status;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Integer getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Integer teacherId) {
        this.teacherId = teacherId;
    }

    public String getTeacherName() {
        return teacherName;
    }

    public void setTeacherName(String teacherName) {
        this.teacherName = teacherName;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Course() {
    }

    public Course(String name, String describe, Date startTime, Date endTime, Integer teacherId, String teacherName, Date createTime,Date updateTime) {
        this.name = name;
        this.describe = describe;
        this.startTime = startTime;
        this.endTime = endTime;
        this.teacherId = teacherId;
        this.teacherName = teacherName;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Course(Integer id, String name, String describe, Date startTime, Date endTime, Date updateTime) {
        this.id = id;
        this.name = name;
        this.describe = describe;
        this.startTime = startTime;
        this.endTime = endTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", describe='" + describe + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", teacherId=" + teacherId +
                ", teacherName='" + teacherName + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", img='" + img + '\'' +
                '}';
    }
}
